Airwallex\Gateways\ExpressCheckout D

Total Complexity 156
Dependencies 21
Dependents 5
Total lines 1,043
Lines of code 769
Logical lines of code 318
Comment lines 111
Methods 45
Properties 9

Methods 45

Method Rating Maintainability Complexity Lines of code
shouldShowExpressCheckoutButton()
B
47 17 35
displayExpressCheckoutButtonHtml()
A
42 10 61
isProductSupported()
A
52 12 23
process_payment()
A
39 8 62
isCartItemsAllowed()
A
53 9 22
getActiveCardSchemes()
A
47 8 36
hasSubscriptionProduct()
A
55 8 19
getCheckoutDetail()
S
49 6 32
init_form_fields()
S
38 2 84
addOrderMeta()
S
58 6 14
getExpressCheckoutScriptData()
S
44 4 44
isAuthenticationRequired()
S
65 5 9
getProduct()
S
60 4 13
process_refund()
S
51 3 26
do_subscription_payment()
S
52 3 23
getLoginConfirmationSettings()
S
58 3 16
getExpressCheckoutSettingsScriptData()
S
52 2 26
registerHooks()
S
52 2 22
__construct()
S
48 1 35
getPreOrderProductFromCart()
S
70 3 6
isPreOrderProductChargedUponRelease()
S
77 3 3
isAccountCreationPossible()
S
68 3 7
subscription_payment_information()
S
68 3 7
getMetaData()
S
66 3 8
isPageSupported()
S
73 3 5
generate_google_pay_instruction_html()
S
57 1 18
generate_apple_pay_instruction_html()
S
58 1 17
getSupportedProductTypes()
S
60 1 16
isProduct()
S
79 2 3
validate_payment_methods_field()
S
77 2 3
registrationEmailExistsError()
S
66 2 8
isCartOrCheckout()
S
79 2 3
isMethodEnabled()
S
76 2 3
enqueueAdminScripts()
S
65 1 11
shouldShowButtonOnPage()
S
79 1 3
isCardGatewayEnabled()
S
77 1 3
getButtonSize()
S
82 1 3
getButtonType()
S
80 1 3
getShowButtonOn()
S
80 1 3
is_capture_immediately()
S
78 1 3
generate_button_preview_html()
S
73 1 5
generate_alert_html()
S
67 1 9
loadAppleScript()
S
68 1 9
displayExpressCheckoutButtonSeparatorHtml()
S
75 1 5
getButtonTheme()
S
80 1 3